<nz-modal [(nzVisible)]="isVisible" [nzTitle]="title" [nzFooter]="modalFooter" (nzOnCancel)="closeModal()">
    <form class="user-form" [formGroup]="roleForm" *ngIf="roleForm">
        <table class="info-box" cellspacing="0">
            <!--用户角色-->
            <tr>
                <td class="label-td">CODE</td>
                <td class="input-td">
                    <input nz-input formControlName="code" placeholder="请输入角色编码">
                </td>
            </tr>
            <!--用户名-->
            <tr>
                <td class="label-td">角色名</td>
                <td class="input-td">
                    <input nz-input formControlName="name" placeholder="请输入角色名">
                </td>
            </tr>
        </table>
    </form>
    <ng-template #modalFooter>
        <button nz-button nzType="default" (click)="closeModal()">取消</button>
        <button nz-button nzType="primary" (click)="submit()" [nzLoading]="loading">确认</button>
    </ng-template>
</nz-modal>
